package com.kelp.codetoolkit.service

import com.intellij.openapi.project.Project
import com.kelp.codetoolkit.data.ListCellData
import javax.swing.JList
import javax.swing.JScrollPane
import javax.swing.JTextField

/**
 * @author: liuyuebai
 * @date: 2025/1/24 13:40
 * @description:
 */
interface MethodDialogHandleService {

    companion object {
        fun getInstance(project: Project): MethodDialogHandleService {
            return project.getService(MethodDialogHandleService::class.java)
        }
    }

    /**
     *
     */
    fun filterSearchByCache(searchQuery:String,project: Project):List<String>

    fun assembleCellData(listClassName:List<String>,page:Int,project: Project):List<ListCellData>

    /**
     * 根据输入获取所有的
     */
    fun filterSearchClasses(searchQuery:String,project: Project,page: Int):List<ListCellData>

    fun methodParamPopWindow(paramField: JTextField, selectList: JList<ListCellData>, paramScrollPane: JScrollPane)
}